<?php echo $this->form ;?>

<?php if($this->results) : ?>
<hr>
Results for:
<form action="update" method="POST">
<table width="650" border="1">
<tr>
    <th>Thumb</th>
    <th>ID</th>
    <th>Title & Description</th>
    <th>Posted Date</th>
	<th>Taken Date</th>
	
    
</tr>

<?php foreach ($this->results as $photo): ?>
<tr>
    <td><?php if($photo['thumbnail']) : ?><a target="_blank" href="<?php echo $this->escape($photo['url']);?>"><img src="<?php echo $this->escape($photo['thumbnail']);?>"/></a><?php endif; ?></td>
    <td><?php if($photo['id']) : ?><a target="_blank" href="<?php echo $this->escape($photo['url']);?>"><?php echo $this->escape($photo['id']);?><?php endif; ?></a></td>  
    <td><b><?php echo $this->escape($photo['title']);?></b><br/>
    <?php echo $this->escape($photo['description']);?></td> 
    <td><?php if($photo['API_date_posted']) : ?><?php echo $this->escape($photo['API_date_posted']);?><?php endif; ?></td>
    <td><?php if($photo['API_date_taken']) : ?><?php echo $this->escape($photo['API_date_taken']);?><?php endif; ?></td>
    
</tr>
<?php endforeach; ?>
</table>

<br/>
<input type="submit" name="submit" id="submitbutton" value="Update Indicated Dates">
<br/>Updating requires Flickr authentication. You may be redirected to Flickr.com to grant FlickrOCD access to update your files.
</form>
<?php endif; ?>